package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
  * @Description: 请假记录
  * @Author: xiangchao
  * @Date: 2020/11/9 7:10 下午
  */  
@Data
@Accessors(chain = true)
public class DCheckAskfor implements Serializable {

    private static final long serialVersionUID=1L;
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("请假ID")
    private Long id;
    @ApiModelProperty(value = "门店ID", required = true)
    @NotNull(message = "门店ID不能为空")
    private Integer storeId;
    @ApiModelProperty(value = "发型师ID", required = true)
    @NotNull(message = "发型师ID不能为空")
    private Integer userId;
    @ApiModelProperty(value = "请假类别", required = true)
    @NotBlank(message = "请假类别不能为空")
    private String type;
    @ApiModelProperty(value = "开始日期", required = true)
    @NotBlank(message = "开始日期不能为空")
    private String start;
    @ApiModelProperty(value = "开始日期-上午或下午")
    private String startAfternoon;
    @ApiModelProperty(value = "结束日期", required = true)
    @NotBlank(message = "结束日期不能为空")
    private String end;
    @ApiModelProperty(value = "结束日期-上午或下午")
    private String endAfternoon;
    @ApiModelProperty("天数")
    private String day;
    @ApiModelProperty("图片")
    private String img;
    @ApiModelProperty(value = "请假原因", required = true)
    @NotBlank(message = "请假原因不能为空")
    private String result;
    @ApiModelProperty("状态1同意-1不同意-2用户取消")
    private Integer status;
    @ApiModelProperty("创建时间")
    private String addTime;
    @ApiModelProperty("审核结果")
    private String adminResult;
    private String name;
    private String phone;

}
